package cn.itcast.order.config;

import org.jboss.logging.Logger;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.context.annotation.Bean;
/**
 * 基于Java代码来修改日志级别
 */
//@EnableFeignClients(defaultConfiguration = DefaultFeignConfiguration .class)
@FeignClient(value = "userservice", configuration = DefaultFeignConfiguration .class)
public class DefaultFeignConfiguration {
    @Bean
    public Logger.Level feignLogLevel(){
        return Logger.Level.ERROR; // 日志级别为BASIC
    }
}
